<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.1</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="/step-seven-xadmin/css/font.css">
    <link rel="stylesheet" href="/step-seven-xadmin/css/xadmin.css">
    <script src="/step-seven-xadmin/propertyjs/common/jquery-3.5.1.js"></script>
    <script src="/step-seven-xadmin/lib/layui/layui.js"></script>
    <script src="/step-seven-xadmin/propertyjs/common/cookie.js"></script>
    <script src="/step-seven-xadmin/propertyjs/common/xadmin.js"></script>
    <script src="/step-seven-xadmin/propertyjs/common/myAjax.js"></script>
    <script src="/step-seven-xadmin/propertyjs/user/userAdd.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="/step-seven-xadmin/propertyjs/common/html5.min.js"></script>
    <script src="/step-seven-xadmin/propertyjs/common/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="x-body">
    <form class="layui-form">
        <div class="layui-form-item">
            <label for="userName" class="layui-form-label">
                <span class="x-red">*</span>用户名
            </label>
            <div class="layui-input-inline">
                <input type="text" id="userName"  required="required"
                       class="layui-input" maxlength="16">
            </div>
            <div class="layui-form-mid layui-word-aux" onkeyup="userNameRule()" id="usernameTips">
                6到16个字符
            </div>
        </div>
        <div class="layui-form-item">
            <label for="email" class="layui-form-label">
                <span class="x-red">*</span>邮箱
            </label>
            <div class="layui-input-inline">
                <input type="text" id="email"required="" lay-verify="email"
                       autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux" onkeyup="emailRule()" id="emailTips">
                6到16个字符
            </div>
        </div>
        <div class="layui-form-item">
            <label for="phone" class="layui-form-label">
                <span class="x-red">*</span>手机号
            </label>
            <div class="layui-input-inline">
                <input type="text" id="phone"
                       autocomplete="off" class="layui-input" maxlength="11">
            </div>
            <div class="layui-form-mid layui-word-aux" onkeyup="phoneRule()" id="phoneTips">
                <span class="x-red">*</span>将会成为您唯一的登入名
            </div>
        </div>

        <div class="layui-form-item">
            <label for="birthday" class="layui-form-label">
                <span class="x-red">*</span>生日
            </label>
            <div class="layui-input-inline">
                <input type="date" id="birthday"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label  class="layui-form-label">
                <span class="x-red">*</span>性别
            </label>
            <div class="layui-input-inline">
                <input type="radio" value="男" name="sex" id="nan">男
                <input type="radio" value="女" name="sex" id="nv">女
            </div>
        </div>
        <div class="layui-form-item">
            <label for="age" class="layui-form-label">
                <span class="x-red">*</span>年龄
            </label>
            <div class="layui-input-inline">
                <input type="number" id="age"  maxlength="3"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="hobby" class="layui-form-label">
                <span class="x-red">*</span>爱好
            </label>
            <div class="layui-input-inline" style="display: flex;">
                <div><input type="checkbox" value="篮球" name="hobby" id="hobby"
                            class="layui-input">篮球</div>
                <div><input type="checkbox" value="羽毛球" name="hobby"
                            class="layui-input">羽毛球</div>
                <div><input type="checkbox" value="乒乓球" name="hobby"
                           class="layui-input">乒乓球</div>
                <div><input type="checkbox" value="足球" name="hobby"
                            class="layui-input">足球</div>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="password" class="layui-form-label">
                <span class="x-red">*</span>密码
            </label>
            <div class="layui-input-inline">
                <input type="password" id="password"
                       autocomplete="off" class="layui-input" maxlength="11">
            </div>
            <div class="layui-form-mid layui-word-aux" onkeyup="passwordRule()" id="passwordTips">

            </div>
        </div>
        <div class="layui-form-item">
            <label for="button" class="layui-form-label">
                <span class="x-red"></span>
            </label>
            <button class="layui-btn"  onclick="save()" id="button">
                点击增加
            </button>
        </div>
    </form>
</div>
<script>var _hmt = _hmt || [];
(function () {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>